package com.pen.sample.client.model.delegate;

public class Result implements IResult
{
	private Boolean _isOk;
	private Throwable _throwable;
	private Object _result;
	
	public Result( Boolean isOk, Throwable error, Object result )
	{
		_isOk = isOk;
		_throwable = error;
		_result = result;
	}
	
	@Override
	public Boolean isOk()
	{
		return _isOk;
	}

	@Override
	public Throwable getError()
	{
		return _throwable;
	}

	@Override
	public Object getResult()
	{
		return _result;
	}

	@Override
	public void kill()
	{
		_throwable = null;
		_result = null;
	}

}
